layui.use(['form', 'layer'], function () {
    const form = layui.form,
        layer = parent.layer === undefined ? layui.layer : top.layer,
        $ = layui.jquery;

    $.ajax({
        url: $.cookie("tempUrl") + "doctororder/findDoctorInspectionOrderDetailsVO?id=" + $.cookie('tempId'),
        type: "POST",
        success: function (result) {
            if (result.code === 200) {
                $(".name").append(result.data.name);
                $(".gender").append(result.data.gender === 1 ? "男" : "女");
                $(".age").append(result.data.age);
                $(".memberPhone").append(result.data.phone);
                $(".sid").append(result.data.sid);

                $(".yyname").append(result.data.yyname);
                $(".yydz").append(result.data.yydz);

                let list = result.data.doctorOrderInspectTiemVOList;
                for (let index in list) {
                    $(".doctorOrderInspectTiemVOList").append("<a class=\"layui-btn layui-btn-primary layui-border-red layui-btn-xs\">" + list[index].inspectName + "</a>");
                }
                form.render();

            } else {
                layer.msg(result.exception, {icon: 7, anim: 6});
            }
        }
    });
});